Sandbox/Old transformation structure/yeojohnson.R

#' Yeo-Johnson Transformation
#'
#' Transforms the dependent variable of a regression model using the Yeo-Johnson
#' transformation. The regression model can be a linear or a linear mixed model 
#' with one random intercept. 
#' 
#' @param object an object of type lm or lme. 
#' @param ... other parameters that can be passed to the function.
#' @return The return depends on the class of its argument. The 
#' documentation of particular methods gives detailed information about the 
#' return of that method.
#' @seealso  \code{\link{yeojohnson.lm}},  \code{\link{yeojohnson.lme}}
#' @keywords Yeo-Johnson
#' @export
yeojohnson <- function(object,...) UseMethod("yeojohnson")
akreutzmann/trafo documentation built on Sept. 14, 2020, 9:03 p.m.